//
//  AzirRPCServiceContext.swift
//  Center
//
//  Created by 蒋晨成 on 2021/12/28.
//

import Center_AppInfo
import Center_RPC
import Foundation

class AzirRPCServiceContext: AzirRPCServiceContextual {
    var sessionID: String {
        UserCenter.sessionID ?? ""
    }

    var guid: String {
        UserCenter.guid
    }

    func unauthenticated() {
        UserCenter.forceLogout()
    }

    var appVersionCode: Int64 { AppInfoCenter.versionCode }
    var appVersion: String { AppInfoCenter.version }
    var appOS: Int64 { AppInfoCenter.os }
}
